<?php
$enlace = mysql_connect(':/cloudsql/cloud-archysoft:usuarios-systema', 'root', '');
echo "
<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Cloud Computing</title> </head> <body>";
echo 'Conectado satisfactoriamente a Cloud Computing Google <br>';
echo " <table width=\"600\" border=\"4\">
<tr>
<td><table width=\"600\" border=\"1\">
<tr>
<td width=\"150\">NOMBRE</td>
<td width=\"150\">EDAD</td>
</tr> ";
mysql_select_db('mysql') or die('Could not select database');
$sql="SELECT * FROM clientes";
$result = mysql_query($sql) or die('Query failed(INSERT INTO entities ): ' . mysql_error());
while ($fila = mysql_fetch_assoc($result)) {
echo "<tr> <td> " . $fila['nombre'] . "</td>
<td> " . $fila['edad'] . "</td> </tr>";
}
echo " </table></td> </tr></table></body></html>";